package ru.spb.osll.myfit.client.event;

public class PageButtonEvent {
  public enum PageButtonEventType {
    COLLAPSE_ALL("Collapse all"),
    EXPAND_ALL("Expand all"),
    SAVE_PAGE("Save page"),
    ADD_INCLUDE("Include page"),
    ADD_TABLE("Add table"),
    ADD_WIKI("Input text"),
    ADD_CONTENT("Add content"),
    TEST_PAGE("Test page"),
    RUN_SUITE("Run suite"),
    REFRESH("Discard"),
    LIST_OF_EXECUTING_TEST("Test results"),
    RESULTS_FOR_PAGE("Test run history"),
    BACK(""),
    VERIFY_PAGE("Verify Page"),
    ADD_DEFINE("Add variable"),
    STOP("Stop"),
    RELOAD_TABLE_TEMPLATES("Reload templates"),
    TO_EDIT_MODE("Edit mode"),
    TO_VIEW_MODE("View mode"),
    HOME("Home"),
    SAVE_METADATA("Save metadata"),
    ADD_TAG("Add tag");

    private final String m_title;

    private PageButtonEventType(String title) {
      m_title = title;
    }

    public String getTitle() {
      return m_title;
    }

  }

  private final PageButtonEventType m_type;

  public PageButtonEvent(PageButtonEventType type) {
    m_type = type;
  }

  public PageButtonEventType getType() {
    return m_type;
  }

}
